<%@ page session="true" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>eBusiness Framework Demo - ImpEx</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
</head>
<body>
<h1>Import abgeschlossen</h1>


<c:choose>
	<c:when test="${sessionScope.importStatus.wellformed}">Wellformed</c:when>
	<c:otherwise>Malformed</c:otherwise>
</c:choose>

<br/>

<c:choose>
	<c:when test="${sessionScope.importStatus.valid}">Valid</c:when>
	<c:otherwise>Invalid (<c:out value="${sessionScope.importStatus.errorCause}"/>)</c:otherwise>
</c:choose>

<br/><br/>



Processed <c:out value="${sessionScope.importStatus.processedArticles}"/> item(s):

<ul>
<c:forEach var="article" items="${sessionScope.importStatus.articleNames}">
	<li><c:out value="${article}"/></li>
</c:forEach>
</ul>

Updated:  <c:out value="${sessionScope.importStatus.updatedArticles}"/> item(s)<br/>
<c:if test="${sessionScope.importStatus.failedArticles > 0}">
	Failed: <c:out value="${sessionScope.importStatus.failedArticles}"/> item(s)
</c:if>

<br/><br/>
<div style="color:red">
<b><c:out value="${sessionScope.faultStatus.message}"/><br/>
<c:out value="${sessionScope.faultStatus.faultInfo}"/></b>
</div>

<hr/>
<a href="welcome.jsp">Back</a>	
 | <a href="<%= response.encodeURL("controllerservlet?action=showProductList") %>">Show Productlist</a>


</body>
</html>
